package com.commons.dbutils.dao;

import java.sql.Connection;
import java.sql.SQLException;
import org.apache.commons.dbutils.ResultSetHandler;

public interface Runner {
	


	public int[] batch(Connection conn, String sql, Object[][] params)
			throws SQLException ;
	
	public int[] batch(String sql, Object[][] params) throws SQLException;
	
	
    public <T> T query(Connection conn, String sql, Object param, ResultSetHandler<T> rsh) throws SQLException ;

    
    public <T> T query(Connection conn, String sql, Object[] params, ResultSetHandler<T> rsh) throws SQLException ;

    public <T> T query(Connection conn, String sql, ResultSetHandler<T> rsh, Object... params) throws SQLException ;

    
    public <T> T query(Connection conn, String sql, ResultSetHandler<T> rsh) throws SQLException ;

    
    public <T> T query(String sql, Object param, ResultSetHandler<T> rsh) throws SQLException ;

    
    public <T> T query(String sql, Object[] params, ResultSetHandler<T> rsh) throws SQLException ;

   
    public <T> T query(String sql, ResultSetHandler<T> rsh, Object... params) throws SQLException ;

    public <T> T query(String sql, ResultSetHandler<T> rsh) throws SQLException ;

 
    public int update(Connection conn, String sql) throws SQLException ;

  
    public int update(Connection conn, String sql, Object param) throws SQLException ;

    
    public int update(Connection conn, String sql, Object... params) throws SQLException ;

   
    public int update(String sql) throws SQLException ;

    
    public int update(String sql, Object param) throws SQLException;

  
    public int update(String sql, Object... params) throws SQLException;

    
}
